<!DOCTYPE html>
<html lang="en">
    <head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <meta name="format-detection" content="telephone=no" />

  <title>
    第一周01-09阶段小结 | 迪克猪的博客
  </title>

  
  <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
  <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
  <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
  <link rel="manifest" href="/manifest.json" />
  <meta name="theme-color" content="#ffffff" />

  
  <link
    rel="stylesheet"
    href="https://unpkg.com/modern-normalize@0.6.0/modern-normalize.css"
  />

  
  
  
  
  <link rel="stylesheet" href="https://zsy619.github.io/style.min.f7761d111b74dd5c07f0111decee92938c12abc42e0fd319e1a07483e248b54e.css" integrity="sha256-93YdERt03VwH8BEd7O6Sk4wSq8QuD9MZ4aB0g&#43;JItU4=" />

  
  
    
  
</head>

    <body>
        <header id="header">
  <div class="header_container">
    <h1 class="sitetitle">
      <a href="https://zsy619.github.io" title="迪克猪的博客">迪克猪的博客</a>
    </h1>
    <nav class="navbar">
      <ul>
        <li><a href="https://zsy619.github.io">Home</a></li>
        
          <li>
            <a href="/post/">
              
              <span>LINUX性能优化</span>
            </a>
          </li>
        
          <li>
            <a href="/csapp/">
              
              <span>深入理解计算机系统_第三版</span>
            </a>
          </li>
        
          <li>
            <a href="/golang/">
              
              <span>golang</span>
            </a>
          </li>
        
          <li>
            <a href="/docker/">
              
              <span>容器</span>
            </a>
          </li>
        
          <li>
            <a href="/flutter/">
              
              <span>Flutter</span>
            </a>
          </li>
        
          <li>
            <a href="/know/">
              
              <span>知识点</span>
            </a>
          </li>
        
          <li>
            <a href="/categories/">
              
              <span>目录</span>
            </a>
          </li>
        
          <li>
            <a href="/about/">
              
              <span>关于</span>
            </a>
          </li>
        
        <li class="hide-sm"><a href="https://zsy619.github.io/index.xml" type="application/rss+xml">RSS</a></li>
      </ul>
    </nav>
  </div>
</header>

        
<section id="main">
  <article class="post content">
    <h2 class="title">第一周01-09阶段小结</h2>
    <div class="post_content">
      <h3 id="学习思路">学习思路</h3>
<p>建立起整体性能的全局观</p>
<h3 id="学习内容">学习内容</h3>
<ul>
<li>平均负载
<ul>
<li>含义</li>
<li>1分钟、5分钟、15分钟时间段监控</li>
<li>平均负载的合理性判定</li>
<li>工具uptime使用</li>
<li>/proc/cupinfo查看cup相关信息</li>
<li>工具top使用</li>
<li>平均负载高于cpu数量70%就要进行排查了</li>
<li>工具uptime、stress、systat、mpstat、pidstat使用</li>
</ul>
</li>
<li>cpu上下文切换
<ul>
<li>cpu寄存器</li>
<li>程序计数器PC</li>
<li>cpu上下文与cpu上下文切换</li>
<li>进程上下文切换、进程上下文切换、中断上下文切换
<ul>
<li>内核空间 &ndash; 内核态</li>
<li>用户空间 &ndash; 用户态</li>
<li>工具vmstat、pidstat、sysbench、man、watch使用</li>
</ul>
</li>
<li>自愿上下文切换</li>
<li>非自愿上下文切换</li>
</ul>
</li>
<li>中断
<ul>
<li>进行中断会出现什么情况</li>
<li>/proc/interrupts观察中断情况</li>
</ul>
</li>
<li>cpu使用率
<ul>
<li>节拍率HZ，使用/boot/config查看配置情况</li>
<li>USER_HZ，默认100</li>
<li>/proc/stat与/proc/[pid]/stat查看cpu使用率</li>
<li>工具top、ps、pidstat、perf top、perf recod、perf report、ab、pstree、execsnoop、ftrace使用</li>
</ul>
</li>
<li>僵尸进程
<ul>
<li>进程状态区分（R\D\Z\S\I）</li>
<li>进程组、会话</li>
<li>iowait分析</li>
<li>工具ps aux、top、dstat、pidstat、strace、perf record、perf report、pstree使用</li>
</ul>
</li>
<li>软中断
<ul>
<li>异步处理机制</li>
<li>上半部与下半部</li>
<li>外卖配送例子</li>
<li>/proc/softirqs</li>
<li>/proc/interrupts</li>
</ul>
</li>
</ul>
<h3 id="学习感悟">学习感悟</h3>
<p>要从了解基本概念，从系统的原理着手出发，linux下的工具比较齐全，要充分了解各工具的作用及应用场景</p>
<h3 id="cpu相关的指标">CPU相关的指标</h3>
<p><img src="../../images/20200609-0857-23.png" alt=""></p>

    </div>
    <div class="info post_meta">
      <time datetime=2020-06-01T10:26:55&#43;0800 class="date">Monday, June 1, 2020</time>
      
        <ul class="tags">
        
          <li> <a href="https://zsy619.github.io/tags/linux%E6%80%A7%E8%83%BD%E4%BC%98%E5%8C%96">linux性能优化</a> </li>
        
          <li> <a href="https://zsy619.github.io/tags/linux">linux</a> </li>
        
        </ul>
      
      
    </div>
    <div class="clearfix"></div>
  </article>
  
    <div class="other_posts">
      
      <a href="https://zsy619.github.io/post/09%E5%9F%BA%E7%A1%80%E7%AF%87%E6%80%8E%E4%B9%88%E7%90%86%E8%A7%A3linux%E8%BD%AF%E4%B8%AD%E6%96%AD/" class="prev">09|基础篇--怎么理解Linux软中断？</a>
      
      
      <a href="https://zsy619.github.io/post/10%E6%A1%88%E4%BE%8B%E7%AF%87%E7%B3%BB%E7%BB%9F%E7%9A%84%E8%BD%AF%E4%B8%AD%E6%96%ADcpu%E4%BD%BF%E7%94%A8%E7%8E%87%E5%8D%87%E9%AB%98%E6%88%91%E8%AF%A5%E6%80%8E%E4%B9%88%E5%8A%9E/" class="next">10|案例篇--系统的软中断CPU使用率升高，我该怎么办？</a>
      
    </div>
    <aside id="comments">
</aside>

  
</section>

        <a id="back_to_top" title="Go To Top" href="#">
  <span>
    <svg viewBox="0 0 24 24">
      <path fill="none" d="M0 0h24v24H0z"></path>
      <path d="M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71z"></path>
    </svg>
  </span>
</a>

        <footer id="footer">
  <p>
    <span>&copy; 2021 <a href="https://zsy619.github.io" title="迪克猪的博客">迪克猪的博客</a> </span>
    <span>Built with <a rel="nofollow" target="_blank" href="https://gohugo.io">Hugo</a></span>
    <span>Theme by <a rel="nofollow" target="_blank" href="https://github.com/wayjam/hugo-theme-mixedpaper">WayJam</a></span>
  </p>

  <script src="https://zsy619.github.io/js/main.min.8b182175f5874aeed0acc0979345c98d4bde22208ec4f36cc1d6e3102acb4b10.js" integrity="sha256-ixghdfWHSu7QrMCXk0XJjUveIiCOxPNswdbjECrLSxA=" crossorigin="anonymous" async></script>
</footer>

    </body>
</html>
